import request from "../utils/request";
// 列表
export const testList = (data: any) => {
  return request.get('test/list', data)
}

// 单删
export const del = (data: any) => {
  return request.get('test/delete', data)
}

// 批删
export const deleteall = (data: any) => {
  return request.post('test/deleteall', data)
}

// 发布考试
export const updateState = (data: any) => {
  return request.post('test/updateState', data)
}

// 单个考试信息
export const  singleexamination = (data: any) => {
  return request.get('test/get', data)
}

// 学生--可见老师弹窗 部门
export const  department_list = (data: any) => {
  return request.get('department/list', data)
}

// 学生弹窗 班级
export const  classes_list = (data: any) => {
  return request.get('classes/list', data)
}

// 学生弹窗 穿梭框
export const  student_list = (data: any) => {
  return request.get('student/list', data)
}

// 学生弹窗 可参加考试的学生
export const  test_getstudents = (data: any) => {
  return request.get('test/getstudents', data)
}

// 学生弹窗 确定 添加
export const  teststudents_add = (data: any) => {
  return request.post('teststudents/add', data)
}


// 可见老师弹窗 穿梭框
export const teacher_list = (data: any) => {
  return request.get('teacher/list', data)
}

// 可见老师弹窗 考试可见范围
export const test_getlimit = (data: any) => {
  return request.get('test/getlimit', data)
}

// 可见老师弹窗 确定 添加
export const  testlimit_add = (data: any) => {
  return request.post('testlimit/add', data)
}




// 阅卷老师弹窗 阅卷老师
export const test_getmarkteachers = (data: any) => {
  return request.get('test/getmarkteachers', data)
}

// 阅卷老师弹窗 确定 添加
export const  testmarkteacher_add = (data: any) => {
  return request.post('testmarkteacher/add', data)
}



// 题库列表
export const database_list = (data: any) => {
  return request.get('database/list', data)
}

//题库 点击左侧单选按钮再确定弹出窗 根据题库id获取试题列表
export const databasequestion_list = (data: any) => {
  return request.get('databasequestion/list', data)
}


// 试题列表
export const subjects_list = (data: any) => {
  return request.get('subjects/list', data)
}

// 获取单条试题信息
export const subjects_get = (data: any) => {
  return request.get('subjects/get', data)
}




// ---------------------
export const update = (data: any) => {
  return request.get('databasequestion/list', data)
}

export const addd = (data: any) => {
  return request.post('database/add', data)
}

export const teach = (data: any) => {
  return request.get('teacher/list', data)
}

// 发布
export const test_Add = (data: any) => {
  return request.post('test/add', data)
}

// 编辑回显 根据id获取单个考试信息
export const test_get = (data: any) => {
  return request.get('test/get', data)
}

// 考试分析
export const analysislist = (data: any) => {
  return request.get('test/analyse', data)
}



// 学生端
// 修改密码
export const student_changepass = (data: any) => {
  return request.post('student/changepass', data)
}

// 获取考试题目（开始考试）
export const getTestStart = (data: any) => {
  return request.get('test/start', data)
}

// 学生答题接口
export const postStudentanswerAdd = (data: any) => {
  return request.post('studentanswer/add', data)
}